package alex.demo;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;

/**
 * Created by lushun.chen on 2017/4/27.
 *
 * @author lushun.chen
 */
@Controller
@RequestMapping
public class DemoController {
    @RequestMapping
    public String demo(ModelMap modelMap) {
        modelMap.put("number", new BigDecimal(6.7));
        return "index";
    }
}
